package com.nuanshui.framework.schedule.util;

import java.net.InetAddress;

/**
 * 调度处理工具类
 *
 */
public class ScheduleUtil {

    public static String getLocalHostName() {
        try {
            return InetAddress.getLocalHost().getHostName();
        } catch (Exception e) {
            return "";
        }
    }

    public static String getLocalIP() {
        try {
            return InetAddress.getLocalHost().getHostAddress();
        } catch (Exception e) {
            return "";
        }
    }

    public static String getTaskNameFormBean(String beanName, String methodName) {
        return beanName + "#" + methodName;
    }


}